package com.zws.cucumber.expander;

/**
 * author: zws
 */
public class ZwsStrParseUtil {
    public static boolean isKeyCharacter(char character) {
        return Character.isLetterOrDigit(character) || inExpectedSet(character, '.', '-', '_');
    }

    public static boolean inExpectedSet(char actual, char ... expectedSet) {
        for (char expected : expectedSet) {
            if (actual == expected) {
                return true;
            }
        }
        return false;
    }
}
